package com.elitesland.demo.controller.backend.entity;


import com.elitesland.core.base.BaseModel;
import com.elitesland.system.annotation.Comment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 客户商品销售价格
 */
@Entity
@Table(name = "item_price_cust")
@org.hibernate.annotations.Table(appliesTo = "item_price_cust", comment = "客户商品销售价格")
@Data
@DynamicInsert
@DynamicUpdate
@Accessors(chain = true)
@ApiModel(value = "ITEM_PRICE_CUST", description = "客户商品销售价格")
@EqualsAndHashCode(callSuper=true)
public class ItemPriceCustDO extends BaseModel implements Serializable
{


    @ApiModelProperty("商品编码")
    @Comment("商品编码")
    @Column(length = 255 )
    String itemCode;

    @ApiModelProperty("客户编码")
    @Comment("客户编码")
    @Column(length = 255 )
    String custCode;

    @ApiModelProperty("价格 关键字段")
    @Comment("价格 关键字段")
    @Column()
    Double itemPrice;

    @ApiModelProperty("税率 关键字段")
    @Comment("税率 关键字段")
    @Column()
    Double taxRate;

    @ApiModelProperty("生效日期")
    @Comment("生效日期")
    @Column()
    LocalDateTime validDate;

    @ApiModelProperty("失效日期")
    @Comment("失效日期")
    @Column()
    LocalDateTime failureDate;



}
